﻿using YunZuan.Models.Attributes;
using YunZuan.Models.Entities;

namespace YunZuan.Models
{
    [Table(TableName = "yz_unit", PrimaryKey = "ID")]
    public class Unit:BaseEntity
     
    {
        private int id;
        private string unitName;
        /// <summary>
        /// ID
        /// </summary>
        [Column(IsAutoIncrement = true)]
        public int ID
        {
            get { return id; }
            set { this.ChangeNotify<int>("ID", value, ref id); }
        }
        /// <summary>
        /// 单位名称（ct ,克等）
        /// </summary>
        public string UnitName
        {
            get { return unitName; }
            set { this.ChangeNotify<string>("UnitName", value, ref unitName); }
        }
    }
}
